<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $uid 
 * @property int $main_uid 
 * @property string $room_wxid 微信群id
 * @property int $room_id 群id
 * @property int $robot_id 机器人id
 * @property string $user_id 微信id
 * @property int $behavior_type 1=进群  2=退群  3=发言 
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class ChListenRoomBehavior extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_listen_room_behavior';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'main_uid', 'room_wxid', 'room_id', 'robot_id', 'user_id', 'behavior_type', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'main_uid' => 'integer', 'room_id' => 'integer', 'robot_id' => 'integer', 'behavior_type' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
